﻿using System.Collections.Generic;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace HRMService
{
    [ServiceContract(Namespace = "http://HRMService")]
    public interface IMtom
    {
        [OperationContract]
        int GetLastestVersion();

        [OperationContract]
        long GetMaxRequestLength();

        [OperationContract]
        byte[] DownloadChunk(string FileName, long Offset, int BufferSize);

        [OperationContract]
        long GetFileSize(string FileName);

        [OperationContract]
        long GetFileTemplateSize(string FileName);

        [OperationContract]
        List<string> GetFilesList();


        [OperationContract]
        List<string> GetFilesTemplateList();

        [OperationContract]
        string CheckFileHash(string FileName);

        [OperationContract]
        void AppendChunk(string FileName, byte[] buffer, long Offset);

    }
}
